package io.xp.kata.gildedrose.items;

import io.xp.kata.gildedrose.Item;

/**
 * 功能描述
 */
public class BackstagePass extends Item {
    public BackstagePass(int sellIn, int qualite) {
        super("Backstage passes to a TAFKAL80ETC concert", sellIn, qualite);
    }

    @Override
    protected void updateQualityAfterExpiration() {
        quality = 0;
    }

    @Override
    protected void updateQuality() {
        increaseQuality();


        if (sell_in < 10) {
            increaseQuality();
        }

        if (sell_in < 5) {
            increaseQuality();
        }

    }

}
